<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
	String acadmicSupSurame = (String)request.getSession().getAttribute("acadmicSupSurame");
	String acadmicSupFirstname = (String)request.getSession().getAttribute("acadmicSupFirstname");
	String acadmicSupEmail = (String)request.getSession().getAttribute("acadmicSupEmail");
	String acadmicSupDep = (String)request.getSession().getAttribute("acadmicSupDep");
	String error1 = (String)request.getAttribute("error1");
%>
<html>
	<jsp:include page="StudentHeader.jsp" >
		<jsp:param name="pageTitle" value="Work Placement Management System - Student" />
	</jsp:include>
	<body OnLoad="showmenu(document.getElementById('smenu3'));">
		<jsp:include page="StudentPageHeader.jsp"></jsp:include>
		<div id="container">
			<jsp:include page="StudentMenu.jsp" ></jsp:include>
			<div id="content">
				<h3 class="posttitle">Student - Academic Supervisor</h3>
				<div class="entry">
					<%	if(error1 == null)
						{
					%>
					<h4> Department : <%= acadmicSupDep %></h4>
					<p> Surname : <%= acadmicSupSurame %></p>
					<p> First Name : <%= acadmicSupFirstname %></p>
					<p> Email : <%= acadmicSupEmail %></p>
					
					<%	}
						else
						{
					%>
							<p><%= error1 %><p>
							<form name="query" method="post">
								<input type="hidden" name="action" value="sendQuery">     
							</form> 
							<a href="javascript:document.query.submit();" title="Send a querie to an Academic Supervisor">Send a query</a>
					<%	}
					%>
				</div>
	    	</div>
			<jsp:include page="StudentPageFooter.jsp"></jsp:include>
		</div>
	</body>
</html>